package com.msy.zk;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.msy.zk.util.ConnectionUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;

@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        DataSourceTransactionManagerAutoConfiguration.class,
        DruidDataSourceAutoConfigure.class ,
        HibernateJpaAutoConfiguration.class})
public class ZkApplication {

    private static ConnectionUtil connectionUtil;

    @Autowired
    public void setConnectionUtil(ConnectionUtil conn){
        connectionUtil = conn;
    }

    public static void main(String[] args) {
        SpringApplication.run(ZkApplication.class, args);
        connectionUtil.zkClient();
    }






}
